import React, { Component } from 'react'
import UserContext from './context/userContext'

export class Main extends Component {
  render() {
    console.log(this.context)
    return (
      <div>Main</div>
    )
  }
}

Main.contextType =  UserContext // 上下文类型

export default Main